

package com.hulk.dryad.persistence.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.hulk.dryad.common.constant.CommonConstants;
import com.hulk.dryad.persistence.injector.datascope.mapper.DataScopeMapper;
import com.hulk.dryad.persistence.entity.SysUserRoleModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户角色表 Mapper 接口
 * </p>
 *
 * @author kim
 * @since 2017-10-29
 */
@DS("#" + CommonConstants.TENANT_ID)
@Mapper
public interface SysUserRoleMapper extends DataScopeMapper<SysUserRoleModel> {

	/**
	 * 根据用户Id删除该用户的角色关系
	 * @param userId 用户ID
	 * @return boolean
	 * @author kim
	 * @date 2019年12月7日 16:31:38
	 */
	Boolean deleteByUserId(@Param("userId") Long userId);

}
